#include "model.h"
#include "attentionmodel.h"
#include "livemodel.h"
#include "presentermodel.h"
#include "recordmodel.h"

namespace yc {

Model::Model(QObject* parent) : QObject { parent }
{
    presenter_model_ = new PresenterModel(this);
    attention_model_ = new AttentionModel(this);
    live_model_ = new LiveModel(this);
    record_model_ = new RecordModel(this);
}

Model::~Model()
{
    delete presenter_model_;
    delete attention_model_;
    delete live_model_;
    delete record_model_;
}

void Model::clear()
{
    attention_model_->clear();
    record_model_->clear();
    live_model_->clear();
    presenter_model_->clear();
}

} // namespace yc
